package com.itheima.service;

import com.itheima.pojo.OrderSetting;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.util.List;

public interface OrderSettingService {
    /**
     * 导出预约模板
     * @param response
     */
    void export(HttpServletResponse response,String filename);

    /**
     * 上传文件
     * @param excelFile
     */
    void upload(MultipartFile excelFile);

    /**
     * 根据年月查询对应的预约设置信息
     * @param month
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(String month);

    /**
     * 根据日期修改可预约人数
     * @param orderSetting
     */
    void editNumberByOrderDate(OrderSetting orderSetting);
}
